# -*- coding: utf-8 -*-

# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html


class ZhuaquPipeline(object):
    def process_item(self, item, spider):
        return item

from scrapy.exceptions import DropItem
# from pymongo import MongoClient
# class FilterWordsPipeline(object):
#     def process_item(self, item, spider):
#         client = MongoClient("127.0.0.1",27017)
#         db = client.test
#         mydb = db.myd
#         for key in item:
#             mydb.save(item[key])